package com.syni.mdd.sjb.common.component.utils.feign.service.mddAll;

import com.syni.mdd.sjb.common.component.utils.feign.constants.Constants;
import com.syni.mdd.sjb.common.component.utils.common.utils.RpcResponseVo;
import com.syni.mdd.sjb.common.component.utils.feign.dto.mddAll.apiCoupon.*;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = Constants.MDD_DSP_API,path = Constants.MDD_DSP_API_PATH)
@RequestMapping("/apiCoupon")
public interface CouponRestService {

    @PostMapping("/search")
    RpcResponseVo search(@RequestBody SearchDto searchDto);

    @PostMapping("/searchByVerId")
    RpcResponseVo searchByVerId(@RequestBody SearchDto searchDto);

    @PostMapping("/searchByVerNo")
    RpcResponseVo searchByVerNo(@RequestBody SearchDto searchDto);

    @PostMapping("/searchCouponDetail")
    RpcResponseVo searchCouponDetail(@RequestBody SearchCouponDetailDto searchCouponDetailDto);

    @PostMapping("/searchVerCouponDetail")
    RpcResponseVo searchVerCouponDetail(@RequestBody SearchVerCouponDetailDto searchVerCouponDetailDto);

    @PostMapping("/searchTodayYesDayVerCoupon")
    RpcResponseVo searchTodayYesDayVerCoupon(@RequestBody SearchTodayYesDayVerCouponDto searchTodayYesDayVerCouponDto);

    @PostMapping("/verByNo")
    RpcResponseVo verByNo(@RequestBody VerByNoDto verByNoDto);
}
